import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import add_role from '@/components/add_role'
import add_user from '@/components/add_user'
import index from '@/components/index'
import xiang from '@/components/xiang'
import counts from '@/components/counts'
import update from '@/components/update'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/add_role',
      name: 'add_role',
      component: add_role
    },
    {
      path: '/add_user',
      name: 'add_user',
      component: add_user
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/xiang',
      name: 'xiang',
      component: xiang
    },
    {
      path: '/counts',
      name: 'counts',
      component: counts
    },
    {
      path: '/update',
      name: 'update',
      component: update
    },
  ]
})
